import { IParam } from '@/core';
import { AvueChildFiveServiceBase } from './avue-child-five-service-base';

/**
 * avue示例实体05服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class AvueChildFiveService
 * @extends AvueChildFiveServiceBase
 */
export class AvueChildFiveService extends AvueChildFiveServiceBase {

    /**
     * 基础数据服务实例
     * 
     * @private
     * @type { AvueChildFiveService }
     * @memberof AvueChildFiveService
     */
    private static basicDataServiceInstance: AvueChildFiveService;

    /**
     * 数据服务存储Map对象
     *
     * @private
     * @type {Map<string, any>}
     * @memberof AvueChildFiveService
     */
    private static dataServiceMap: Map<string, any> = new Map();

    /**
     * Creates an instance of AvueChildFiveService.
     * @memberof AvueChildFiveService
     */
    constructor(opts?: IParam) {
        super(opts);
    }

    /**
     * 获取实例
     *
     * @static
     * @param 应用上下文
     * @return {*}  { AvueChildFiveService }
     * @memberof AvueChildFiveService
     */
    static getInstance(opts?: IParam): AvueChildFiveService {
        if (!this.basicDataServiceInstance) {
            this.basicDataServiceInstance = new AvueChildFiveService(opts);
        }
        return this.basicDataServiceInstance;
    }
}
export default AvueChildFiveService;